package cn.jf.modules.system.service;

import cn.jf.modules.system.entity.SysUserAgent;
import cn.jf.modules.system.mapper.SysUserAgentMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.dubbo.config.annotation.Service;

import java.util.List;

/**
 * @Description: 用户代理人设置
 * @Author: jeecg-boot
 * @Date:  2019-04-17
 * @Version: V1.0
 */
@Service(version = "1.0.0")
public class SysUserAgentServiceImpl extends ServiceImpl<SysUserAgentMapper, SysUserAgent> implements ISysUserAgentService {

    @Override
    public IPage<SysUserAgent> getPageList(IPage<SysUserAgent> page, SysUserAgent sysUserAgent) {
        return page.setRecords(this.baseMapper.getPageList(page,sysUserAgent));
    }

    @Override
    public SysUserAgent getOneByUserName(String userName) {
        return this.baseMapper.getOneByUserName(userName);
    }

    @Override
    public List<SysUserAgent> getList(SysUserAgent sysUserAgent) {
        return this.baseMapper.getList(sysUserAgent);
    }
}
